#include<stdio.h>


/*输入:12345*/
/*输出:54321*/
int main()
{
    int num = 0;
    printf("please input your num:");
    scanf("%d",&num);
    printf("before num = %d\n",num);

    int resverseNum = 0;
    int yushu = 0;
    while (num)
    {
        yushu = num % 10;
        resverseNum = resverseNum * 10 + yushu;
        num = num / 10;
    }
    printf("reverseNum:%d\n",resverseNum);

    return 0;
}